	layui.use(['form','layer','laydate','table','laytpl'],function(){
	    var form = layui.form,
	        layer = parent.layer === undefined ? layui.layer : top.layer,
	        $ = layui.jquery,
	        laydate = layui.laydate,
	        laytpl = layui.laytpl,
	        table = layui.table;
		//列表数据
		var tableIns = 	table.render({
		        id : "listTable",
				elem : '#list',
				height :"full-125",
				toolbar: true,
				defaultToolbar: ['filter', 'print', 'exports'],
				url :ctxPath+ '/tSystemLoginLog/tSystemLoginLogList' ,//数据接口
				page : true, //开启分页,
			        cols : [[
			            {type: "numbers", fixed:"left", width:50},
							{field: 'account', title: '登录账号', align:"center"},
							{field: 'status', title: '登录状态', align:"center",templet:function(d){
				                return d.status==0?"登录成功":"登录失败";
				            }},
							{field: 'tips', title: '提示消息', align:"center"},
							{field: 'ip', title: 'ip', align:"center"},
							{field: 'address', title: '操作地区', align:"center"},
				            {field: 'createTime', title: '创建时间', align:'center', align:'center'},
			            {title: '操作', width:170, fixed:"right",align:"center",templet:function(d){
			            	return '<a class="layui-btn layui-btn-xs boot-layer " boot-title="详情" boot-url="'+ctxPath+'/tSystemLoginLog/toTSystemLoginLogDetail?id='+d.id+'">详情</a>';
			            }}
			        ]]
			});
		// 初始化日期控件
		laydate.render({
			elem : '#startTime',
			max : _.formatDate(new Date()), // 日期最大到今天
		});
		laydate.render({
			elem : '#endTime',
			max : _.formatDate(new Date()), // 日期最大到今天
		});
		});